package cn.zsb.zsb.entity;

//import org.hibernate.validator.constraints.Length;
//import org.hibernate.validator.constraints.URL;
//
//import javax.validation.constraints.Min;
//import javax.validation.constraints.NotBlank;
import java.util.Date;

public class Advtise {
    private Long id;


    private String title;

    private String url;

    private Boolean isvalid;

    private Short sortorder;

    private Date starttime;

    private String imgurl;

    private String target;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
//    @NotBlank(message = "标题不能为空")
//    @Length(min = 5,message = "标题的长度不能少于5个！")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    //@URL(message = "必须是网址")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Boolean getIsvalid() {
        return isvalid;
    }

    public void setIsvalid(Boolean isvalid) {
        this.isvalid = isvalid;
    }

   /// @Min(value = 1,message = "排序必须大于1")
    public Short getSortorder() {
        return sortorder;
    }

    public void setSortorder(Short sortorder) {
        this.sortorder = sortorder;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    //@NotBlank(message = "图片地址必须填写")
    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl == null ? null : imgurl.trim();
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target == null ? null : target.trim();
    }
}